﻿@model GameSchool.ViewModels.Home.NavigationViewModel
<ul class="nav nav-list">
    <li class="nav-header">Námið</li>
    <li><a href="/"><i class="icon-home"></i>Forsíða</a></li>
    <li><a href="@Url.Action("Recent", "Home")"><i class="icon-inbox"></i>Nýtt efni</a></li>
    <li><a href="@Url.Action("List", "Course")"><i class="icon-th-list"></i>Námskeið</a></li>
    @if (!Model.courses.Any())
    {
        <li class="divider"></li>
        <li><i class="icon-warning-sign"></i>Þú ert ekki skráð(ur) í neinn áfanga</li>
    }
    else
    {
        foreach (var course in Model.courses)
        {
        <li class="nav-header">@course.Name</li>
        <li><a href="@Url.Action("List", "Video", new { id = course.CourseID })"><i class="icon-film">
        </i>Myndbönd</a></li>
        <li><a href="@Url.Action("List", "Project", new { id = course.CourseID })"><i class="icon-file">
        </i>Verkefni</a></li>

        <li><a href="@Url.Action("List", "Exam", new { id = course.CourseID })"><i class="icon-list-alt">
        </i>Próf</a></li>
        }
    }
    <li class="divider"></li>
    <li><a href="@Url.Action("List", "Store")"><i class="icon-shopping-cart"></i>Vefverslun</a></li>
    <li><a href="@Url.Action("List", "Event")"><i class="icon-glass"></i>Vísindaferðir</a></li>
</ul>
